public class test {
    public static void main(String[] args) {
        int n = 1234;
        for(int i = 0;i<4;i++){
            int g = n%10;
            System.out.println(g);
            n=n/10;
        }
    }
}
